package com.cfx.exercise_33;

public class TestThread {
	//测试使用多线程
	public static void main(String[] args) {	
	
		MyThread myThread = new MyThread();
		new Thread(myThread).start();
		for (int i = 0; i <10; i++) {
			System.out.println(Thread.currentThread().getName());
		}
	}
}
class MyThread implements Runnable{

	@Override
	public void run() {
		for (int i = 0; i < 10; i++) {
			System.out.println(Thread.currentThread().getName());
		}
	}

}
